
package com.duoqin.audiowaves;

import android.view.animation.Animation;
import android.widget.ImageView;

public class ShapeHolder {

    private Animation animation;
    private ImageView view;
    private int viewIndex;
    private float peakValue;
    private float reduceValue;

    public Animation getAnimation() {
        return animation;
    }

    public void setAnimation(Animation animation) {
        this.animation = animation;
    }

    public ImageView getView() {
        return view;
    }

    public void setView(ImageView view) {
        this.view = view;
    }

    public int getViewIndex() {
        return viewIndex;
    }

    public void setViewIndex(int viewIndex) {
        this.viewIndex = viewIndex;
    }

    public float getPeakValue() {
        return peakValue;
    }

    public void setPeakValue(float peakValue) {
        this.peakValue = peakValue;
    }

    public float getReduceValue() {
        return reduceValue;
    }

    public void setReduceValue(float reduceValue) {
        this.reduceValue = reduceValue;
    }

    public void startAnimation() {
        if (null != view && null != animation) {
            view.startAnimation(animation);
        }
    }

}

